package edu.sctu.practice.class02.Wangpeng.Test6;

/**
 * Created by wp on 2015/11/9.
 */
public class Person {
    private String name;

    public Person(String n){
        this.setName(n);
    }
    public void setName(String n){
        name=n;
    }
    public String getName(){
        return name;
    }
    public void getInfo(){
        System.out.println("名字"+name);
    }
}
